package com.yunshang.shoppingmall.service;

import com.yunshang.shoppingmall.entity.Share;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

import static org.springframework.transaction.annotation.Propagation.REQUIRED;

public interface ShareService {

     int insert(Share record);

    @Transactional(propagation = REQUIRED)
    int updateByPrimaryKey(Share record);

    int updateByPrimaryKeySelective(Share record);

    List<Share> selectShareAll();

    List<Share> selectByPrimaryKey(@Param("id") Integer id);
}
